
# docker pull zendesk/maxwell
#  winpty  sh run.sh
host=172.16.1.189
kafka="$host:9092,$host:9093,$host:9094"
echo $kafka
# 需要用户
# CREATE USER 'maxwell'@'%' IDENTIFIED BY 'XXXXXX';

# GRANT ALL ON maxwell.* TO 'maxwell'@'%';
# GRANT SELECT, REPLICATION CLIENT, REPLICATION SLAVE ON *.* TO 'maxwell'@'%';


# 启动命令  小写的Timezone
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> windows 使用这个命令
#docker run -it --rm zendesk/maxwell bin/maxwell --user='root' --password='123456' --host='192.168.0.106'   --producer=kafka   --kafka.bootstrap.servers='192.168.0.106:9092,192.168.0.106:9093,192.168.0.106:9094' --kafka_topic=ods_base_db_m  --jdbc_options=serverTimezone=UTC
docker run -it --rm zendesk/maxwell bin/maxwell --user='root' --password='123456' --host=$host   --producer=kafka   --kafka.bootstrap.servers=$kafka --kafka_topic=ods_base_db_m  --jdbc_options=serverTimezone=UTC


# 客户端消费
#.\bin\windows\kafka-console-consumer.bat  --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --topic ods_base_db_m